package com.edison.democommon.api;

import lombok.Getter;
import lombok.Setter;

/**
 * @author edison
 */
@Getter
@Setter
public class PaginatedMetadata extends Metadata {

    private int totalItems;
    private int totalPages;
    private int currentPage;
    private int pageSize;

    public PaginatedMetadata(String traceId, String timestamp, int totalItems, int totalPages, int currentPage, int pageSize) {
        super(traceId, timestamp);
        this.totalItems = totalItems;
        this.totalPages = totalPages;
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }
}
